package com.junzhiit.nengji.api.web.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.junzhiit.nengji.api.service.GoodsHistoryService;

@RestController
@RequestMapping("/goods/history")
public class GoodsHistoryController extends BaseController {
	
	@Autowired GoodsHistoryService goodsHistoryService;
	
//	@ApiOperation(value = "插入商品历史数据")
//	@RequestMapping(value="/add",method = RequestMethod.POST)
//	public ResultVO add(GoodsHistory goodsHistory) {
//		AssertUtil.notBlank(goodsHistory.getShopId(), "shopId is required");
//		AssertUtil.notBlank(goodsHistory.getGoodsId(), "goodsId is required");
//		AssertUtil.notBlank(goodsHistory.getUserId(), "userId is required");
//		AssertUtil.notNull(goodsHistory.getType(), "type is required");
//		goodsHistory.setCreatedTime(new Date());
//		return goodsHistoryService.add(goodsHistory);
//	}
	
}
